<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>次数提示</title>
    <script type="application/javascript" th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
    <script type="application/javascript" th:src="@{/webjars/bootstrap/3.1.1/js/bootstrap.js}"></script>
    <script>
        function onceAgain() {
            location = "/ED_threshold_training/test/login/"+[[${userId}]];
        }
    </script>
</head>
<body>
<p th:text="${msg}" th:if="${msg != null}"></p>
<div th:if="${timePartitionTotalAvg != null}">
    <h3 style="color: red">您的测试平均值为</h3>
    <div>
        平均正确率：<span th:text="${#numbers.formatDecimal(timePartitionTotalAvg.avgRightRate,1,'COMMA',2,'POINT')}"></span> %;
        平均反应时间: <span th:text="${#numbers.formatDecimal(timePartitionTotalAvg.avgTime,1,'COMMA',2,'POINT')}"></span> ms
    </div>
</div>
    <p>你已完成本次测试</p>
<!--<div id="nextBtn" style="font-size: 24px;">
    <input type="button" th:value="再来一次" style="font-size: 24px;" th:width="200px" th:height="100px" onclick="onceAgain()">
</div>-->
</body>
</html>